AUTOMAKE_OPTIONS = subdir-objects

lib_LTLIBRARIES = libde265.la

libde265_ladir = \
        $(includedir)/libde265

libde265_la_CPPFLAGS =
libde265_la_CFLAGS = \
  $(CFLAG_VISIBILITY) \
  -DLIBDE265_EXPORTS
libde265_la_CXXFLAGS = \
  $(CFLAG_VISIBILITY) \
  -DLIBDE265_EXPORTS \
  -I$(top_srcdir)

if HAVE_VISIBILITY
 libde265_la_CFLAGS += -DHAVE_VISIBILITY
 libde265_la_CXXFLAGS += -DHAVE_VISIBILITY
endif

libde265_la_LDFLAGS = -version-info $(LIBDE265_CURRENT):$(LIBDE265_REVISION):$(LIBDE265_AGE)

libde265_la_SOURCES = \
  acceleration.h \
  alloc_pool.h \
  alloc_pool.cc \
  bitstream.cc \
  bitstream.h \
  cabac.cc \
  cabac.h \
  configparam.cc \
  configparam.h \
  contextmodel.cc \
  contextmodel.h \
  de265.cc \
  deblock.cc \
  deblock.h \
  decctx.cc \
  decctx.h \
  fallback.cc \
  fallback.h \
  fallback-dct.h \
  fallback-dct.cc \
  fallback-motion.cc \
  fallback-motion.h \
  dpb.cc \
  dpb.h \
  image.cc \
  image.h \
  image-io.h \
  image-io.cc \
  intrapred.cc \
  intrapred.h \
  md5.cc \
  md5.h \
  motion.cc \
  motion.h \
  nal.cc \
  nal.h \
  nal-parser.cc \
  nal-parser.h \
  pps.cc \
  pps.h \
  quality.cc \
  quality.h \
  refpic.cc \
  refpic.h \
  sao.cc \
  sao.h \
  scan.cc \
  scan.h \
  sei.cc \
  sei.h \
  slice.cc \
  slice.h \
  sps.cc \
  sps.h \
  threads.cc \
  threads.h \
  transform.cc \
  transform.h \
  util.cc \
  util.h \
  visualize.cc \
  visualize.h \
  vps.cc \
  vps.h \
  vui.cc \
  vui.h

SUBDIRS =
libde265_la_LIBADD =

if ENABLE_ENCODER
  libde265_la_SOURCES += en265.h en265.cc
  SUBDIRS += encoder
  libde265_la_LIBADD += encoder/libde265_encoder.la
endif

if ENABLE_SSE_OPT
  SUBDIRS += x86
  libde265_la_LIBADD += x86/libde265_x86.la
endif

if ENABLE_ARM_OPT
  SUBDIRS += arm
  libde265_la_LIBADD += arm/libde265_arm.la
endif

if MINGW
  libde265_la_SOURCES += ../extra/win32cond.c ../extra/win32cond.h
  libde265_la_LDFLAGS += -no-undefined -static-libgcc -static-libstdc++
endif

EXTRA_DIST = Makefile.vc7 \
  CMakeLists.txt

libde265_la_HEADERS = \
  de265.h \
  de265-version.h
